package com.xyw.his00.config;

import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisPlusConfig {
    @Bean
    public PaginationInnerInterceptor paginationInterceptor(){
        return new PaginationInnerInterceptor();
    }
    /**
     * 配置乐观锁插件
     */
    @Bean
    public OptimisticLockerInnerInterceptor  optimisticLockerInterceptor(){
        return new OptimisticLockerInnerInterceptor();

    }
}
